import instance from "@/axios";

// 获取部门列表
export  const deptList = ()=>instance.get("/dept/list")

// 部门分页数据
export  const deptPage = (searchForm)=>instance.post("/dept/page",searchForm)


// 部门信息的添加或修改
export  const addOrUpdate = (dept)=>instance.post("/dept/addOrUpdate",dept)

// 根据id获取部门信息
export  const getDeptById = (id)=>instance.get("/dept/getById/"+id)


// 删除部门
export  const deleteDept = (id)=>instance.delete("/dept/delete/"+id)